Contents | Index | < Browse | Browse >

LETTERvfprintfULETTER Prints formatted data of a varying-length argument list into a file.

Overview
#include <stdio.h>
r = vfprintf(f,format,vl);

int r;
FILE *f;
const char *format;
va_list vl;

Portability
ANSI

Description
Prints formatted data into the file "f". The output format template describing the format of the output must be followed by the argument list "vl".

Before usage "vl" must be initialized using va_start. After using you must finish using it using va_end.

Returns
The number of characters written or a negative value if an error occured.

See also
vprintf , fprintf